
export const pieChartOption = (total: number) => {
    return {
            title: {
            text: '今日总任务数',
            bottom: '8px',
            left: '24px',
            textStyle: {
                color: '#BECBE8',
                fontSize: 12,
            }
        },
        tooltip: {
            trigger: 'item'
        },
        legend: {
            show: false,
            orient: 'vertical',
            left: 'right'
        },
        color: ['#00D4B4', '#1364FF', '#F92356', '#FF9422'],
        series: [
            {
                name: '任务统计',
                type: 'pie',
                radius: ['40%', '60%'],
                bottom: 20,
                avoidLabelOverlap: false,
                itemStyle: {
                },
                label: {
                    show: true,
                    position: 'center',
                    formatter: `{total|${total}}`,
                    rich: {
                        total: {
                            fontSize: 14,
                            fontWeight: 'bold',
                            color: '#ffffff',
                        },
                    }
                },
                labelLine: {
                    show: false
                },
                data: [1,0,0,0]
            }
        ]
    }
}